package com.bjsxt.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 成交数据
 */
@ApiModel(description = "成交数据")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "turnover_record")
public class TurnoverRecord {
    public static final String COL_ID = "id";
    public static final String COL_MARKET_ID = "market_id";
    public static final String COL_PRICE = "price";
    public static final String COL_VOLUME = "volume";
    public static final String COL_CREATED = "created";
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "")
    private Long id;
    /**
     * 市场ID
     */
    @TableField(value = "market_id")
    @ApiModelProperty(value = "市场ID")
    private Long marketId;
    /**
     * 成交价
     */
    @TableField(value = "price")
    @ApiModelProperty(value = "成交价")
    private BigDecimal price;
    /**
     * 成交数量
     */
    @TableField(value = "volume")
    @ApiModelProperty(value = "成交数量")
    private BigDecimal volume;
    /**
     * 创建时间
     */
    @TableField(value = "created", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date created;
}